package idoc.handOn.workshop;

import idoc.handOn.workshop.service.WordFactory;
import idoc.handOn.workshop.service.impl.WordFactoryImpl;

import java.io.FileNotFoundException;

public class App {
	
	public static void main(String[] args) {
		
		if (args == null || args.length == 0)
			throw new IllegalArgumentException("Minimum arguments must be 3!");
		
		try {
			WordFactory wordFactory = new WordFactoryImpl();
			wordFactory.process(args[0], args[1], args[2]);
			System.out.println("Process completed.");
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
	}
	
	
}
